﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Sinacor.Service.Infra.AuthorizationService.Service.DataContract
{
    /// <summary>
    /// Contrato de dados User
    /// </summary>
    [DataContract(Namespace = "http://www.bovespa.com.br/Sinacor.Service.Infra.AuthorizationService.Service.DataContract/2008/07", Name = "User")]
    public partial class User
    {
        #region Campos

        /// <summary>
        /// Id do usuário
        /// </summary>
        private int _id;

        /// <summary>
        /// Nome do usuário
        /// </summary>
        private string _name;

        /// <summary>
        /// LoginName do usuário
        /// </summary>
        private string _loginName;

        /// <summary>
        /// Id do sessão do usuário
        /// </summary>
        private int? _sessionId;

        #endregion

        #region Propriedades

        /// <summary>
        /// Descricao da propriedade UserId
        /// </summary>
        [DataMember(IsRequired = false, Name = "Id", Order = 0)]
        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        /// <summary>
        /// Descricao da propriedade UserName
        /// </summary>
        [DataMember(IsRequired = false, Name = "LoginName", Order = 1)]
        public string LoginName
        {
            get { return _loginName; }
            set { _loginName = value; }
        }


        /// <summary>
        /// Descricao da propriedade UserName
        /// </summary>
        [DataMember(IsRequired = false, Name = "Name", Order = 2)]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        /// <summary>
        /// Id Sessão do usuário
        /// </summary>
        [DataMember(IsRequired = false, Name = "SessionId", Order = 3)]
        public Int32? SessionId
        {
            get { return _sessionId; }
            set { _sessionId = value; }
        }

        #endregion
    }
}
